package com.msyy.tj_message.dao;

import com.msyy.tj_message.entity.Menu;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Classname MenuDao
 * @Description 菜单信息
 * @Date 2020/5/16 20:44
 * @Created by You
 */
@Repository
public interface MenuDao {

    /**
     * 获取一级菜单
     * @return
     */
//    @Select("select * from admin_menu where menu_level = 1 order by menu_id ")
    public List<Menu> getParentMenuByRoleId();

    /**
     * 获取二级菜单
     * @return
     */
//    @Select("select * from admin_menu where menu_level = 2 order by menu_id ")
    public List<Menu> getChildMenuByRoleId();
}
